package ${package}.${bottomName}.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
* ${comments}
* 枚举数据
* @author ${author}
* @date ${datetime}
* 邮箱=-> ${email}
*/
public class ${className}Enum{

<#if enumColumns?? &&enumColumns?size gt 0>
	<#list enumColumns as column>
	/**
	* ${column.columnEnum.remark}
	*/
	<#if column.attrName??&&column.columeEnumDict??>
    public static final String DICT_PARENT_CODE_${column.columeEnumDict}="${column.attrname}";
	</#if>
	</#list>
</#if>

<#if enumColumns?? &&enumColumns?size gt 0>
	<#list enumColumns as column>
	/**
	* ${column.columnEnum.remark}
	*/
	<#if column.attrName??>
	@Getter
	@RequiredArgsConstructor
	public enum ${column.attrName}Enum {

		<#if column.columnEnum.item?? && column.columnEnum.item?size gt 0>
		<#list column.columnEnum.item as row>
		/**
		* ${row.value}
		*/
		<#if row_index+1<column.columnEnum.item?size>${row.name}("${row.code}","${row.value}"),
<#else>${row.name}("${row.code}","${row.value}");
		</#if>
		</#list>
		</#if>
		private final String code;
		private final String value;
	}
	</#if>

	</#list>
</#if>
}
